/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PROTOCOLOSDIAS")
public class ProtocolosDiasProteu implements Serializable{

    @Id
    @Column(name="PRD_IN_CODIGO")
    private Integer prdInCodigo;
    @Column(name="PRO_IN_CODIGO")
    private Integer proInCodigo;
    @Column(name="PRO_ST_CODIGO")
    private String proStCodigo;
    @Column(name="PRD_IN_DIA")
    private Integer prdInDia;
    @Column(name="PRD_ST_TEMPO_DURACAO")
    private String prdStTempoDuracao;
    @Column(name="BIP_ST_MED_COD_TISS")
    private String bipStMedCodTiss;
    @Lob
    @Column(name="PRD_BL_OBS_DIA")
    private String prdBlObsDia;
    @Column(name="USU_IN_CODIGO")
    private Integer usuInCodigo;
    @Column(name="PRD_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date prdDtAlteracao;


    public String getBipStMedCodTiss() {
        return bipStMedCodTiss;
    }

    public void setBipStMedCodTiss(String bipStMedCodTiss) {
        this.bipStMedCodTiss = bipStMedCodTiss;
    }

    public String getPrdBlObsDia() {
        return prdBlObsDia;
    }

    public void setPrdBlObsDia(String prdBlObsDia) {
        this.prdBlObsDia = prdBlObsDia;
    }

    public Date getPrdDtAlteracao() {
        return prdDtAlteracao;
    }

    public void setPrdDtAlteracao(Date prdDtAlteracao) {
        this.prdDtAlteracao = prdDtAlteracao;
    }

    public Integer getPrdInCodigo() {
        return prdInCodigo;
    }

    public void setPrdInCodigo(Integer prdInCodigo) {
        this.prdInCodigo = prdInCodigo;
    }

    public Integer getPrdInDia() {
        return prdInDia;
    }

    public void setPrdInDia(Integer prdInDia) {
        this.prdInDia = prdInDia;
    }

    public String getPrdStTempoDuracao() {
        return prdStTempoDuracao;
    }

    public void setPrdStTempoDuracao(String prdStTempoDuracao) {
        this.prdStTempoDuracao = prdStTempoDuracao;
    }

    public Integer getProInCodigo() {
        return proInCodigo;
    }

    public void setProInCodigo(Integer proInCodigo) {
        this.proInCodigo = proInCodigo;
    }

    public String getProStCodigo() {
        return proStCodigo;
    }

    public void setProStCodigo(String proStCodigo) {
        this.proStCodigo = proStCodigo;
    }

    public Integer getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(Integer usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ProtocolosDiasProteu other = (ProtocolosDiasProteu) obj;
        if (this.prdInCodigo != other.prdInCodigo && (this.prdInCodigo == null || !this.prdInCodigo.equals(other.prdInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 73 * hash + (this.prdInCodigo != null ? this.prdInCodigo.hashCode() : 0);
        return hash;
    }



}
